package com.csair.seam.infrastructure.ehome;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @name: NoticeBundle
 * @author: duroper
 * @create: 2020/02/27
 */
@Data
@Accessors(chain = true)
public class NoticeBundle implements Serializable {
    private static final long serialVersionUID = 8115787466824131683L;

    private int id;
    private String appId;
    private String pwd;
    private String appName;
    // 推送类型(1 强提醒), 默认为0
    private int noticeType;
    // 推送终端类型,1 mobile ,2 pc, 3 mobile+pc, 默认为1
    private int terminalType = 1;
    private String msgType;
    private String content;
    private NoticeImage noticeImage;
    private NoticeRichText RichText;
    private List<NoticeArticle> articles;
    private String toUsers;

    public String messageDigest(){
        return String.format("appId [%s] send [%s] message [%s] to [%s]", appId, msgType, content, toUsers);
    }
}
